package com.freedom.service.core;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.freedom.dao.core.SysRoleDao;
import com.freedom.exception.RTServiceExcepton;
import com.freedom.vo.w.core.SysRoleVo;

/**
 * 角色service
 * @author huguangjun
 *
 */
@Transactional
@Service
public class SysRoleService {
	
	@Autowired
	private SysRoleDao sysRoleDao;

	/**
	 * 查询列表数据
	 * @param map
	 * @return
	 */
	public List<SysRoleVo> selectDataListByParam(Map<String,Object> map) throws RTServiceExcepton{
		List<SysRoleVo> list = sysRoleDao.selectDataListByParam(map);
		return list;
	}
	
	/**
	 * 查询列表总数
	 * @param map
	 * @return
	 */
	public long selectDataCountByParam(Map<String,Object> map) throws RTServiceExcepton{
		return sysRoleDao.selectDataCountByParam(map);
	}
}
